package com.cskaoyan.controller.lz_controller;


import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.lzpackage.lz_history.HistoryData;
import com.cskaoyan.bean.params.BaseParam;
import com.cskaoyan.lz_service.SearchHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin/history")
public class AdminSearchHistoryController {

    @Autowired
    SearchHistoryService searchHistoryService;
    @RequestMapping("list")
    public BaseRespVo list(String username, BaseParam param,String userId,String keyword) {
        HistoryData userData = searchHistoryService.query(param,username,userId,keyword);
        return BaseRespVo.ok(userData);
    }
}
